/**
 * @file
 * @description 公共主件注册文件
 */

import {
    Button, Table, Tree, Form, FormItem, Input, Container, Header, Aside, Main
    , Menu, MenuItem, MenuItemGroup, Submenu, MessageBox, Message, Card, Breadcrumb, BreadcrumbItem
    , Row, Col, TableColumn, Pagination, Switch, Dialog, Select, Option, Tag, Cascader, Alert, Tabs, TabPane
    , Steps, Step, Checkbox, CheckboxGroup, Upload
} from "element-ui"
import MyTable from '@/components/Table'

export default {
    install(Vue) {
        Vue.prototype.$mb = MessageBox;
        Vue.prototype.$m = Message;
        [MyTable].forEach(item => Vue.component(item.name, item));
        [Button, Table, Tree, Form, FormItem, Input, Container, Header, Aside, Main
            , Menu, MenuItem, MenuItemGroup, Submenu, Card, Breadcrumb, BreadcrumbItem
            , Row, Col, TableColumn, Pagination, Switch, Dialog, Select, Option, Tag, Cascader, Alert, Tabs, TabPane
            , Steps, Step, Checkbox, CheckboxGroup, Upload].forEach(item => Vue.use(item));
    }
}